<?php
require_once "db.php";
session_start();

$userid = $_SESSION['uid'];

$deact_query_text = "UPDATE accounts SET active_or_not = '1' WHERE idaccounts='$userid'";
db_query($deact_query_text);
session_destroy();
echo 'Your account has been deactivated';
